package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Publish;
import org.bson.types.ObjectId;

import java.util.List;

public interface MessagesApi {

    //审核通过
    String passPublish(List<Object> publishIds);
    //审核拒绝
     String rejectPublish(List<Object> publishIds);
    //消息置顶
     String topPublish(String publishId);
     //消息取消置顶
     String untopPublish(String publishId);
     //消息撤销
    String revocationPublish(List<Object> publishIds);

    /**
     * @param state  1 未审核   4
     * @return
     */
    List<Publish> queryPulishForState(List<ObjectId> publishIdList, Integer state);

    Publish queryPulishForTopState(String publishId,Integer state);
}
